package learn.advance.annotation;

class DemoAnnotation {
    @Override
    public String toString() {
        return "hh";
    }

    @MyAnno(age = 18, arr = {1, 2})
    public void Get() {

    }
}

@Pro(ClassName = "learn.advance.annotation.Person", MethodName = "Name")
class Demo2Annotation {

    public static void Test(){

        Class< Demo2Annotation> demo2_annotation_class=Demo2Annotation.class;
        Pro an=demo2_annotation_class.getAnnotation(Pro.class);

        String class_name=an.ClassName();
        String method_name=an.MethodName();
        System.out.println(class_name);
        System.out.println(method_name);
    }
}


public class TestAnnotation {
    public static void main(String[] args) {
        Demo2Annotation.Test();
    }

}
